package com.panshi.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 动态表
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Dynamic implements Serializable {
    private long id;//主键id
    private long userId;//id
    private long dynamicTypeId;//文章，回答，问题id
    private Date createTime;//动态时间s
    private String dynamicType;//类型 1资讯; 2回答; 3问题
    private String isRemove;//是否删除 y是; n否

    // 问答/文章
    private List<Essay> essayList;
    // 回答
    private List<Answer> answerList;
    // 提问
    private List<Matter> matterList;
}
